/* This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package Modelo;


/**
 * Clase que representa un parametro
 */
public class Parametro {

	private String _name;
	private String _value;
	
    /**
     * Constructor de la clase Parametro
     * @param name Nombre del parametro
     * @param value Valor de parametro
     */
	public  Parametro(String name, String value){
		
		_name = name;
		_value= value;
		
	}
	
    /**
     * Metodo que devuelve el nombre del parametro
     * @return Nombre del parametro
     */
	public String getName(){
		return _name;
	}
	
    /**
     * Devuelve el valor del parametro
     * @return Valor del parametro
     */
	public String getValue(){
		return _value;
	}
	
    /**
     * Metodo que establece el nombre del parametro
     * @param name Nombre del parametro
     */
	public void setName(String name){
		_name=name;
	}
	
    /**
     * Metodo que introduce el valor del parametro
     * @param value Valor del parametro
     */
	public void setValue(String value){
		_value=value;
	}
	
    /**
     * Metodo que imprime por salida estandar los datos del parametro
     */
	public void printParam(){
		System.out.println("El parametro " + _name + " tiene valor " + _value);
		
	}
	
}
